package com.bootdo.clouddo.dao.book;

import com.bootdo.clouddo.dao.BaseMapper;
import com.bootdo.clouddo.domain.book.BookBookshelf;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookBookshelfMapper extends BaseMapper<BookBookshelf> {

    boolean existsByUid(@Param("uid") Long uid, @Param("bookId") Long bookId);

    int deleteByUid(@Param("uid") Long uid, @Param("bookId") Long bookId);

    List<BookBookshelf> findByUid(@Param("uid") Long uid);
}